package com.rainng.coursesystem.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rainng.coursesystem.model.entity.LeaderEntity;
import com.rainng.coursesystem.model.vo.response.table.LeaderEventItemVO;
import com.rainng.coursesystem.model.vo.response.table.LeaderItemVO;
import com.rainng.coursesystem.model.vo.response.table.TimetableItemVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LeaderMapper extends BaseMapper<LeaderEntity> {
    Integer count(@Param("areaName")String areaName, @Param("name")String name);

    IPage<LeaderItemVO> getPage(IPage<LeaderItemVO> page, @Param("areaName")String areaName, @Param("name") String name);

    List<TimetableItemVO> listLeaderTimetable(Integer leaderId);

    List<LeaderEventItemVO> listLeaderEvent(Integer leaderId);
}
